printing: Use original names for remote CUPS printers
authorMarek Kasik <mkasik@redhat.com>
Thu, 20 Aug 2020 11:40:04 +0000 (13:40 +0200)
committerMarek Kasik <mkasik@redhat.com>
Thu, 20 Aug 2020 11:54:02 +0000 (13:54 +0200)
commit5a8f90357d75244816d4cbe6325eab8775322890
tree991d9350b6c14d4b52056d272c11118d88ae6a60
parent2031bcd38861bc13a101f0c3fc295ed36a5cc96e
printing: Use original names for remote CUPS printers

CUPS uses resource paths in the form of "printers/printer_name"
or "classes/class_name" so it is enough to remove the "printers/"
or "classes/" prefix and use the string behind it as a name.

There was recently introduced a wrong check for the prefix.
This commit fixes it in the way it was originally intended.
modules/printbackends/gtkprintbackendcups.c